#ifndef TRANSLATOR_H
#define TRANSLATOR_H

#include <QObject>
#include <QLocale>

class Translator : public QObject
{
    Q_OBJECT

    explicit Translator(QObject *parent = nullptr);
    Translator(const Translator &) = delete;
    Translator(const Translator &&) = delete;
    Translator &operator=(const Translator &) = delete;

public:
    static Translator &GetInstance() {
        static Translator translator;
        return translator;
    }

    void LoadLanguage(const QString &filename = QString(), const QString &language = QLocale::system().name());

signals:

};

#endif // TRANSLATOR_H
